$(function(){
	$('.confirm_buy').click(function(){
		var userNick = $('.set_nickname').val();
		var userId = '831376723038834688';
		var data = {'userId':userId,'userNick':userNick};
		console.log(data)
		$.post(constans.globalUrl+'/user/saveNickName',data,function(data){
			if(data.code == 'SUCCESS'){
				alert(data.message)
				location.href = constans.htmlUrl+'/html/myInfo.html';
			}
		})
	})
})
